
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_binding"></use>
                    </svg>
                    <div class="name">customizing_binding</div>
                    <div class="fontclass">#icon-customizing_binding</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_detectio"></use>
                    </svg>
                    <div class="name">customizing_detectio</div>
                    <div class="fontclass">#icon-customizing_detectio</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_push"></use>
                    </svg>
                    <div class="name">customizing_push</div>
                    <div class="fontclass">#icon-customizing_push</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_gps"></use>
                    </svg>
                    <div class="name">customizing_gps</div>
                    <div class="fontclass">#icon-customizing_gps</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_Security"></use>
                    </svg>
                    <div class="name">customizing_Security</div>
                    <div class="fontclass">#icon-customizing_Security</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-datadisplay"></use>
                    </svg>
                    <div class="name">data display</div>
                    <div class="fontclass">#icon-datadisplay</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fruit"></use>
                    </svg>
                    <div class="name">fruit</div>
                    <div class="fontclass">#icon-fruit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-drug"></use>
                    </svg>
                    <div class="name">drug</div>
                    <div class="fontclass">#icon-drug</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-electronics"></use>
                    </svg>
                    <div class="name">electronics</div>
                    <div class="fontclass">#icon-electronics</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_veriface"></use>
                    </svg>
                    <div class="name">customizing_veriface</div>
                    <div class="fontclass">#icon-customizing_veriface</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-customizing_qrcode"></use>
                    </svg>
                    <div class="name">customizing_qrcode</div>
                    <div class="fontclass">#icon-customizing_qrcode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daily_use"></use>
                    </svg>
                    <div class="name">daily_use</div>
                    <div class="fontclass">#icon-daily_use</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fresh"></use>
                    </svg>
                    <div class="name">fresh</div>
                    <div class="fontclass">#icon-fresh</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-drink"></use>
                    </svg>
                    <div class="name">drink</div>
                    <div class="fontclass">#icon-drink</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ipad"></use>
                    </svg>
                    <div class="name">ipad</div>
                    <div class="fontclass">#icon-ipad</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jewelry"></use>
                    </svg>
                    <div class="name">jewelry</div>
                    <div class="fontclass">#icon-jewelry</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-maintenance_report"></use>
                    </svg>
                    <div class="name">maintenance_report</div>
                    <div class="fontclass">#icon-maintenance_report</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-diagnose"></use>
                    </svg>
                    <div class="name">diagnose</div>
                    <div class="fontclass">#icon-diagnose</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-meat"></use>
                    </svg>
                    <div class="name">meat</div>
                    <div class="fontclass">#icon-meat</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-long_distance"></use>
                    </svg>
                    <div class="name">long_distance</div>
                    <div class="fontclass">#icon-long_distance</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-precious_gift"></use>
                    </svg>
                    <div class="name">precious_gift</div>
                    <div class="fontclass">#icon-precious_gift</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-repertory"></use>
                    </svg>
                    <div class="name">repertory</div>
                    <div class="fontclass">#icon-repertory</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-platform"></use>
                    </svg>
                    <div class="name">platform</div>
                    <div class="fontclass">#icon-platform</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-restart"></use>
                    </svg>
                    <div class="name">restart</div>
                    <div class="fontclass">#icon-restart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-smallphone"></use>
                    </svg>
                    <div class="name">smallphone</div>
                    <div class="fontclass">#icon-smallphone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-snacks"></use>
                    </svg>
                    <div class="name">snacks</div>
                    <div class="fontclass">#icon-snacks</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stability"></use>
                    </svg>
                    <div class="name">stability</div>
                    <div class="fontclass">#icon-stability</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-logo"></use>
                    </svg>
                    <div class="name">logo</div>
                    <div class="fontclass">#icon-logo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-security"></use>
                    </svg>
                    <div class="name">security</div>
                    <div class="fontclass">#icon-security</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_analyze"></use>
                    </svg>
                    <div class="name">support_analyze</div>
                    <div class="fontclass">#icon-support_analyze</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_download"></use>
                    </svg>
                    <div class="name">support_download</div>
                    <div class="fontclass">#icon-support_download</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_monitoring"></use>
                    </svg>
                    <div class="name">support_monitoring</div>
                    <div class="fontclass">#icon-support_monitoring</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_solution"></use>
                    </svg>
                    <div class="name">support_solution</div>
                    <div class="fontclass">#icon-support_solution</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_upgrade"></use>
                    </svg>
                    <div class="name">support_upgrade</div>
                    <div class="fontclass">#icon-support_upgrade</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-btn_enquiry"></use>
                    </svg>
                    <div class="name">btn_enquiry</div>
                    <div class="fontclass">#icon-btn_enquiry</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-vegetables"></use>
                    </svg>
                    <div class="name">vegetables</div>
                    <div class="fontclass">#icon-vegetables</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_train"></use>
                    </svg>
                    <div class="name">support_train</div>
                    <div class="fontclass">#icon-support_train</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-btn_phone"></use>
                    </svg>
                    <div class="name">btn_phone</div>
                    <div class="fontclass">#icon-btn_phone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-transactiondetail"></use>
                    </svg>
                    <div class="name">transaction detail</div>
                    <div class="fontclass">#icon-transactiondetail</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-advertisement"></use>
                    </svg>
                    <div class="name">advertisement</div>
                    <div class="fontclass">#icon-advertisement</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-support_vedio"></use>
                    </svg>
                    <div class="name">support_vedio</div>
                    <div class="fontclass">#icon-support_vedio</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aisle_manage"></use>
                    </svg>
                    <div class="name">aisle_manage</div>
                    <div class="fontclass">#icon-aisle_manage</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-btn_qrcode"></use>
                    </svg>
                    <div class="name">btn_qrcode</div>
                    <div class="fontclass">#icon-btn_qrcode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-close_aisle"></use>
                    </svg>
                    <div class="name">close_aisle</div>
                    <div class="fontclass">#icon-close_aisle</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-compatibility"></use>
                    </svg>
                    <div class="name">compatibility</div>
                    <div class="fontclass">#icon-compatibility</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
